package com.cloudsea.yunhaistores.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "购物车操作（增/减）的请求DTO")
public class CartOperationDTO {
    @NotBlank(message = "会话ID不能为空")
    @Schema(description = "从/sessions/start接口获取到的会话ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private String sessionId;

    @NotNull(message = "商品ID不能为空")
    @Schema(description = "要操作的商品ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long skuId;
}
